/**
 * Created by 黄忠园 on 2017/12/25.
 */
angular.module('module.repair', [
        'ngStorage',
        'service.job.JobDispatch',
        'service.job.jobInfo',
        'service.job.jobCommunication',
        'service.wmoperationInfo.promoterinfo',
        'service.wmoperationInfo.promotershop'
    ])

    .config(['$stateProvider', function ($stateProvider) {
        $stateProvider
            .state('repairchose', {
                url: '/repairchose',
                templateUrl: repair_view_url + 'repairchose.html',
                controller: 'RepairChoseController',
                controllerAs: 'vm'
            })


            .state('repair', {
                url: '/repair',
                templateUrl: repair_view_url + 'repair.html',
                controller: 'RepairController',
                controllerAs: 'vm'
            })


            .state('repairrecord', {
                url: '/repairrecord',
                templateUrl: repair_view_url + 'repairrecord.html',
                controller: 'RepairRecordController',
                controllerAs: 'vm'
            })


            .state('repairdetail', {
                url: '/repairdetail?jobid&jobstatus',
                templateUrl: repair_view_url + 'repairdetail.html',
                controller: 'RepairDetailController',
                controllerAs: 'vm'
            })


            .state('repairevaluate', {
                url: '/repairevaluate?jobid&repairmanname',
                templateUrl: repair_view_url + 'repairevaluate.html',
                controller: 'RepairEvaluateController',
                controllerAs: 'vm'
            })


            .state('commonproblem', {
                url: '/commonproblem',
                templateUrl: repair_view_url + 'commonproblem.html',
                controller: 'CommonProblemController',
                controllerAs: 'vm'
            })
    }])